<?php

/**
 * Contains a function to ensure input is an array.
 *
 * PHP Version 5
 *
 * @category BuyLocal
 * @package  BuyLocal
 * @author   Kevin Fodness <kevin.fodness@gmail.com>
 * @author   Mike Pennisi <mpennisi@andrew.cmu.edu>
 * @author   Aaron Ryden <aryden@gmail.com>
 * @license  http://opensource.org/licenses/gpl-license.php GNU Public License
 * @link     http://code.google.com/p/buylocalopensourcerensselaer/
 */

/**
 * Checks to see if a value is an array.  Converts it if not.
 *
 * @param mixed &$source The source variable to convert to an array, if needed.
 *
 * @access public
 * @return null
 */
function toArray(&$source)
{
    if (!is_array($source)) {
        $source = array($source);
    }
}

?>